def break_file(file):
	file_index = 1

	with open(file, 'r', encoding='utf-8', newline='') as input_file:
		reader = csv.reader(input_file)
		
		all_rows = [row for row in reader]

		max = len(all_rows)
	 
		i = 1
		
		for row in all_rows:
			max -= 1
			# print(max)
			
			if max == 0:
				output_file.close()
				break
				
			if is_blank(row) or len(row) ==1 or row[1] == "":
				if i > 1:
					output_file.close()
					
				i = 1
				continue
				
			if i ==1:
				new_file = change_name(file, file_index)
				output_file = open(new_file, 'w',encoding='utf-8', newline='')
				writer = csv.writer(output_file)
				file_index += 1
				i += 1
				
			writer.writerow(row)   
